﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CCPnuts.ISkyDiskFileSystem.Interfaces;
using HgCo.WindowsLive.SkyDrive;
using CCPnuts.ISkyDiskFileSystem;
using CCPnuts.Pack;
using System.Threading;

namespace SkyDiskFileSystem
{
    internal class SkyDirectory : SkyElementContainer, I_SkyDirectory
    {
        protected new WebFolderInfo Item { get { return (WebFolderInfo)base.Item; } }

        internal SkyDirectory(SkyDriveWebClient client, I_SkyDirectory parent, WebFolderInfo info)
            : base(PackedInfos.SkyDirectory, client, parent, info)
        {
        }

        protected override WebFolderItemInfo[] GetItems()
        {
            return Client.ListSubWebFolderItems(Item);
        }
    }
}
